const fs = require('fs');
const Router = require('koa-router')

const baseRouter = new Router();
baseRouter.get(
  '/*',
  async function (ctx) {
    await ctx.render('tpl', {
      title: "首页",
      templateName: "main",
      version: '1.0.0',
      markup: "",
    });
  }
);

module.exports = (app) => {
  app.use(baseRouter.routes()).use(baseRouter.allowedMethods());
};